using WPFImage = System.Windows.Controls.Image;
using System.Windows.Media;
using System.Windows.Media.Imaging;

namespace WpfApp1.Core
{
    public static class MenuIcons
    {
        public static WPFImage CreateHistoryIcon()
        {
            return CreateIcon("/Resources/history.png");
        }

        public static WPFImage CreateSyncIcon(bool isEnabled)
        {
            return CreateIcon(isEnabled ? "/Resources/sync.png" : "/Resources/pause.png");
        }

        public static WPFImage CreateCleanIcon()
        {
            return CreateIcon("/Resources/clean.png");
        }

        public static WPFImage CreateExitIcon()
        {
            return CreateIcon("/Resources/exit.png");
        }

        public static WPFImage CreateAutoStartIcon(bool isEnabled)
        {
            return CreateIcon(isEnabled ? "/Resources/autostart_enabled.png" : "/Resources/autostart_disabled.png");
        }

        private static WPFImage CreateIcon(string resourcePath)
        {
            return new WPFImage
            {
                Source = new BitmapImage(new System.Uri($"pack://application:,,,{resourcePath}")),
                Width = 16,
                Height = 16
            };
        }
    }
} 